#include <material.h>
Inheritance diagram for mudbox::RenderTarget:
You can attach multiple textures to the different 'slots' of this RenderTarget, to do multi-target rendering. Textures attached to slot0, slot1, slot2 and slot3 will all get the color; A Texture attached to slotDepth would get the zbuffer.
Public Types |
|
enum | Slot { eSlotColor0 = 0, eSlotColor1, eSlotColor2, eSlotColor3, eSlotDepth, eSlotCount } |
Public Member Functions |
|
virtual const mudbox::ClassDesc * | RuntimeClass (void) const |
virtual void | DrawTexture (const class Texture *pTexture) |
Paints the given texture into the
rendertarget, stretching or shrinking it to fill the available
space. |
|
virtual bool | Attach (mudbox::Texture *pTexture, Slot eSlot=eSlotColor0) |
Attaches a texture to the RenderTarget. The
texture must have exactly the same size as the target. |
|
virtual void | Detach (Slot eSlot=eSlotColor0) |
Detaches a texture from a slot in the
rendertarget. |
|
virtual mudbox::Texture * | Texture (Slot eSlot=eSlotColor0) const |
Returns the attached texture at a given
slot. |
|
virtual unsigned int | Width (void) const |
Returns the width of the rendertarget in
pixels. |
|
virtual unsigned int | Height (void) const |
Returns the height of the rendertarget in
pixels. |
|
virtual void | SetSize (unsigned int iWidth, unsigned int iHeight) |
Sets the size of the rendertarget in pixels.
|
|
virtual void | Activate (void) |
Makes this rendertarget active, but saves
the previous one. |
|
virtual void | Restore (void) |
Restores the previous rendertarget. |
|
virtual void | SetMultisampling (bool bMultisampling) |
Set Multisample tag. To be removed. |
|
Static Public Member Functions |
|
const mudbox::ClassDesc * | StaticClass (void) |
mudbox::Node * | CreateInstances (unsigned int iCount=1) |
|
00657 { 00658 eSlotColor0 = 0, 00659 eSlotColor1, 00660 eSlotColor2, 00661 eSlotColor3, 00662 eSlotDepth, 00663 eSlotCount // placeholder for last position - not a type of slot 00664 }; |
|
Reimplemented from mudbox::Node. 00657 { |
|
Reimplemented from mudbox::Node. |
|
Reimplemented from mudbox::Node. |
|
Paints the given texture into the rendertarget, stretching or shrinking it to fill the available space. |
|
Attaches a texture to the RenderTarget. The texture must have exactly the same size as the target.
|
|
Detaches a texture from a slot in the rendertarget.
|
|
Returns the attached texture at a given slot.
|
|
Returns the width of the rendertarget in pixels. |
|
Returns the height of the rendertarget in pixels. |
|
Sets the size of the rendertarget in pixels. |
|
Makes this rendertarget active, but saves the previous one. |
|
Restores the previous rendertarget. |
|
Set Multisample tag. To be removed. |